class AddMultiColumnEventTypeIndexToMetrics < ActiveRecord::Migration[5.2]
  disable_ddl_transaction!

  def change
    add_index :metrics, [:account_id, :created_at, :event_type_id], {
      name: :metrics_account_created_event_type_idx,
      order: { created_at: :desc },
      algorithm: :concurrently
    }
  end
end
